From: Cosimo Cecchi Date: Sat, 16 Feb 2013 17:54:19 +0000 (-0500) Subject: viewSelector: always reset search string when entering overview X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4826 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1f1aba4a323f8342b39e49610d3c960ed4948e09;p=gnome-shell.git viewSelector: always reset search string when entering overview Instead of relying on the apps button callback to do it for us. https://bugzilla.gnome.org/show_bug.cgi?id=693974 --- diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js index 85ff6156d..de9237bea 100644 --- a/js/ui/viewSelector.js +++ b/js/ui/viewSelector.js @@ -161,6 +161,7 @@ const ViewSelector = new Lang.Class({ show: function() { this._activePage = this._workspacesPage; + this.reset(); this._appsPage.hide(); this._searchPage.hide(); this._workspacesDisplay.show(); @@ -244,11 +245,8 @@ const ViewSelector = new Lang.Class({ }, _onShowAppsButtonToggled: function() { - if (this._searchActive) - this.reset(); - else - this._showPage(this._showAppsButton.checked ? this._appsPage - : this._workspacesPage); + this._showPage(this._showAppsButton.checked ? this._appsPage + : this._workspacesPage); }, _resetShowAppsButton: function() {